import os
import platform
from .other import OtherLogger
from .monitor import MonitorLogger

__all__ = [
    # 'monitor_logger', 'other_logger'
    'monitor_logger', 'other_logger'
]


def run_mkdir():
    """初始化创建文件夹"""
    dir_list = ['/data/monitor-logs/', '/data/server-logs/monitor/']
    for data_dir in dir_list:
        if not os.path.exists(data_dir):
            os.mkdir(data_dir)


if platform.system() == 'Linux':
    run_mkdir()

monitor_logger = MonitorLogger()
other_logger = OtherLogger()
